<?php 
session_cache_expire(999999999);
if(!isset($_SESSION)) 
{ 
	session_start(); 
}
$_SESSION['mang'][]="";
?>
<?php 
	$sl=count($_SESSION['mang']);
	if($sl>0){
		for($i=0;$i<$sl;$i++){
		?>
			<input type="text" name="<?php echo 'xtxttimetran'.$i;?>" value="<?=$_SESSION['mang'][$i]?>" size=20 onfocus="btclick(this.value,<?=$i?>);" onclick="javascript:showCal('<?php echo "Calendar".$i;?>')" />
			<small><a href="javascript:showCal('<?php echo "Calendar".$i;?>')">Select Date</a></small>
			<br><br> 
		<?php 
		}
	}
?>
<input type="hidden" id="songay1" value="<?=count($_SESSION['mang'])?>" />